package com.sluggard.mp.model.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
@Schema(name = "排序字段", description = "排序字段")
public class SortOption {

    @NotNull(message = "字段名不能为空")
    @Schema(description = "字段名")
    private String column;

    @NotNull(message = "排序方式不能为空")
    @Schema(description = "0 升序 1 降序")
    private Byte sort;

}
